﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>Gestalt Unit Tests</title>
    <script type="text/javascript">
      window.DLR = {}
      DLR.settings = {background: 'yellow'}
    </script>
    <script src="/dlr/dlr.js" type="text/javascript"></script>
    <link type="text/css" rel="Stylesheet" href="tests.css" />
    <style type="text/css">
      iframe {
        border: 0px;
        overflow: hidden;
      }
    </style>
</head>
<body>
    <h1>Gestalt Unit Tests</h1>
    <p>
      Each row should <i>eventually</i> result in a
      <span style='color: white; background-color: green; padding: 2px;'>Green</span>
      box. 
      <span style='color: black; background-color: yellow; padding: 2px;'>Yellow</span>
      means the test hasn't run, and
      <span style='color: white; background-color: red; padding: 2px'>Red</span>
      means it failed.
    </p>
    <p>
      Unit tests should be run in all of the major browsers, such as 
      <a href="http://www.google.com/chrome" target="_blank">Chrome</a>, 
      <a href="http://www.apple.com/safari/" target="_blank">Safari</a>, 
      <a href="http://www.mozilla.com/en-US/firefox/personal.html" target="_blank">Firefox</a>, and 
      <a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx" target="_blank">IE8</a>, as well as 
      <a href="http://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx#DCModes" target="_blank">IE7 mode</a> and 
      <a href="http://www.quirksmode.org/css/quirksmode.html" target="_blank">IE Quirks mode</a>.
    </p>
    <div class="testcase">
        <span class="test">
            <script type="application/xml+xaml" id="canvas1" width="50" height="50">
              <Canvas 
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                Background="Green" Width="50" Height="50">
                <TextBlock>with ID</TextBlock>
              </Canvas>
            </script>
        </span>
        <span class="desc">
            In-line XAML with ID
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <script type="application/xml+xaml" width="50" height="50">
              <Canvas
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                Background="Green" Width="50" Height="50"
              >
                <TextBlock>First</TextBlock>
              </Canvas>
            </script>
        </span>
        <span class="desc">
            In-line XAML with no ID (first)
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <script type="application/xml+xaml" width="50" height="50">
              <Canvas
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                Background="Green" Width="50" Height="50"
              >
                <TextBlock>Second</TextBlock>
              </Canvas>
            </script>
        </span>
        <span class="desc">
            In-line XAML with no ID (second)
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <script type="application/xml+xaml" id="canvas2" width="50" height="50">
              <Canvas 
                x:Name="Canvas2"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                Background="Red" Width="50" Height="50"
              >
                <TextBlock>Python</TextBlock>
              </Canvas>
            </script>
            <script type="text/python" class="canvas2" width="50" height="50">
              from System.Windows.Media import SolidColorBrush, Colors
              brush = SolidColorBrush()
              brush.Color = Colors.Green
            </script>
            <script type="text/python" class="canvas2">
              me.Background = brush
            </script>
        </span>
        <span class="desc">
            In-line XAML with in-line python block sharing state
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <script type="application/xml+xaml" id="canvas3" width="50" height="50">
              <Canvas 
                x:Name="Canvas3"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                Background="Red" Width="50" Height="50"
              >
                <TextBlock>Ruby</TextBlock>
              </Canvas>
            </script>
            <script type="text/ruby" class="canvas3">
              include System::Windows::Media
              brush = SolidColorBrush.new
              brush.Color = Colors.Green
              me.Background = brush
            </script>
        </span>
        <span class="desc">
            In-line XAML with in-line ruby
        </span>
    </div>
    
    <p>These test cases are loaded as IFRAMEs from external files, to test various per-page configurations</p>
    <div class="testcase">
        <span class="test">
            <iframe height="50" width="50" src="unit.nobody.html"></iframe>
        </span>
        <span class="desc">
            Embedded in a page that has no BODY tag.
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <iframe height="50" width="50" src="unit.python.html"></iframe>
        </span>
        <span class="desc">
            Python only (-py.xap), using text/python
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <iframe height="50" width="50" src="unit.ruby.html"></iframe>
        </span>
        <span class="desc">
            Ruby only (-rb.xap), using text/ruby
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <iframe height="50" width="50" src="unit.xaml.html"></iframe>
        </span>
        <span class="desc">
            XAML only (-x.xap)
        </span>
    </div>

</body>
</html>
